package com.edmo.fastener.jms;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestJms {

	public static void main(String[] args) {
		
		ApplicationContext ctx = new ClassPathXmlApplicationContext("sender.xml");
		OrderService orderService = (OrderService) ctx.getBean("orderService");
		
		for(int i =1; i<=10; i++)
			orderService.sendOrder("path"+i, "filename", "1");
	}
}
